//
//  FMDBSupplierManager.h
//  takeout
//
//  Created by Mac on 12-3-26.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Supplier.h"
#import "FMDatabase.h"
@interface FMDBSupplierManager : NSObject{
    Supplier *tempSupplier;
    Supplier *newSupplier;
}
-(void) insertSupplierByCategoryId:(NSArray *)suppliers supplierCategoryId:(NSString *)supplierCategoryId sPage:(NSString *)sPage;//根据商铺类型id和页数插入商铺到本地
-(NSArray *) getSupplierByCategoryIdAndPageFromLoc:(NSString *)supplierCategoryId sPage:(NSString *)sPage road:(NSString *) road isSelling:(NSString *) isSelling;//根据类型id和页数获取本地数据
-(void) insert:(FMDatabase *)db supplier:(Supplier *)supplier;//插入
-(void) select;//查询
-(void)deleteBySupplierId:(NSString *)supplierId;//删除
//获取本地商家详细信息
-(Supplier *) getSupplierDetailByIdFromLoc:(NSString *)suppierId;
//根据菜品或商家名称查找数据
-(NSArray *) getSuppliersByNameOrDishAndPage:(NSString *)conditions sPage:(NSString *)sPage;
@end
